from django.db import models
from ckeditor_uploader.fields import RichTextUploadingField
# Create your models here.
class Course(models.Model):
    title=models.CharField(verbose_name='课程名',max_length=50)
    credit=models.FloatField(verbose_name='学分')


    class Meta:
        verbose_name ='学科'
        verbose_name_plural=verbose_name

class UploadImgModel(models.Model):
    img_url = models.ImageField('图片',upload_to='imgs')



class Texe(models.Model):
    name=models.CharField(verbose_name='姓名',max_length=100)
    text=RichTextUploadingField()
    class Meta:
        verbose_name ='Texe'
        verbose_name_plural=verbose_name